<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>列表</title>
</head>
<body>
<table border="2px">
    <tr>
        <th>ID</th>
        <th>姓名</th>
        <th>邮箱</th>
        <th>年龄</th>
        <th>操作</th>
    </tr>
    <tr th:each="emp:${list}">
        <th th:text="${emp.id}">ID</th>
        <th th:text="${emp.name}">姓名</th>
        <th th:text="${emp.email}">邮箱</th>
        <th th:text="${emp.age}">年龄</th>
        <th><a th:href="'/user/'+${emp.id}">详情</a></th>
    </tr>
</table>
</body>
</html>